Optimal. Leaf size=46 \[ \frac{1}{3} x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac{b \log \left (1-c^2 x^2\right )}{6 c^3}+\frac{b x^2}{6 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03505, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {5916, 266, 43} \[ \frac{1}{3} x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac{b \log \left (1-c^2 x^2\right )}{6 c^3}+\frac{b x^2}{6 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5916
Rule 266
Rule 43
Rubi steps
\begin{align*} \int x^2 \left (a+b \tanh ^{-1}(c x)\right ) \, dx &=\frac{1}{3} x^3 \left (a+b \tanh ^{-1}(c x)\right )-\frac{1}{3} (b c) \int \frac{x^3}{1-c^2 x^2} \, dx\\ &=\frac{1}{3} x^3 \left (a+b \tanh ^{-1}(c x)\right )-\frac{1}{6} (b c) \operatorname{Subst}\left (\int \frac{x}{1-c^2 x} \, dx,x,x^2\right )\\ &=\frac{1}{3} x^3 \left (a+b \tanh ^{-1}(c x)\right )-\frac{1}{6} (b c) \operatorname{Subst}\left (\int \left (-\frac{1}{c^2}-\frac{1}{c^2 \left (-1+c^2 x\right )}\right ) \, dx,x,x^2\right )\\ &=\frac{b x^2}{6 c}+\frac{1}{3} x^3 \left (a+b \tanh ^{-1}(c x)\right )+\frac{b \log \left (1-c^2 x^2\right )}{6 c^3}\\ \end{align*}
Mathematica [A] time = 0.0079837, size = 51, normalized size = 1.11 \[ \frac{a x^3}{3}+\frac{b \log \left (1-c^2 x^2\right )}{6 c^3}+\frac{b x^2}{6 c}+\frac{1}{3} b x^3 \tanh ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.007, size = 51, normalized size = 1.1 \begin{align*}{\frac{{x}^{3}a}{3}}+{\frac{b{x}^{3}{\it Artanh} \left ( cx \right ) }{3}}+{\frac{b{x}^{2}}{6\,c}}+{\frac{b\ln \left ( cx-1 \right ) }{6\,{c}^{3}}}+{\frac{b\ln \left ( cx+1 \right ) }{6\,{c}^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.968135, size = 59, normalized size = 1.28 \begin{align*} \frac{1}{3} \, a x^{3} + \frac{1}{6} \,{\left (2 \, x^{3} \operatorname{artanh}\left (c x\right ) + c{\left (\frac{x^{2}}{c^{2}} + \frac{\log \left (c^{2} x^{2} - 1\right )}{c^{4}}\right )}\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.96861, size = 127, normalized size = 2.76 \begin{align*} \frac{b c^{3} x^{3} \log \left (-\frac{c x + 1}{c x - 1}\right ) + 2 \, a c^{3} x^{3} + b c^{2} x^{2} + b \log \left (c^{2} x^{2} - 1\right )}{6 \, c^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.944725, size = 58, normalized size = 1.26 \begin{align*} \begin{cases} \frac{a x^{3}}{3} + \frac{b x^{3} \operatorname{atanh}{\left (c x \right )}}{3} + \frac{b x^{2}}{6 c} + \frac{b \log{\left (x - \frac{1}{c} \right )}}{3 c^{3}} + \frac{b \operatorname{atanh}{\left (c x \right )}}{3 c^{3}} & \text{for}\: c \neq 0 \\\frac{a x^{3}}{3} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23154, size = 72, normalized size = 1.57 \begin{align*} \frac{1}{6} \, b x^{3} \log \left (-\frac{c x + 1}{c x - 1}\right ) + \frac{1}{3} \, a x^{3} + \frac{b x^{2}}{6 \, c} + \frac{b \log \left (c^{2} x^{2} - 1\right )}{6 \, c^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]